package com.fingard.dsp.bank.reqrespobj.downloadcodefile;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

/**
 * 行号下载更新
 */
public class ReqQryCodeFile extends RequestBase {
    /*
    <ATSYH>
        <TransReq>
            <Tenant>10001(租户)</Tenant>
            <BankCode>BOC01(渠道代码)</BankCode>
            <SystemCode></SystemCode>
            <Entity></Entity>
            <TransType>AQ02(指令代码)</TransType>
            <TransSeqID>20190527160115288(请求唯一号)</TransSeqID>
            <TransTime>2019-05-27 16:01:15(请求时间 yyyy-MM-dd HH:mm:ss)</TransTime>
            <TransParam>
              <DetailRecord>
                <FileType>0(0：CNAPS文件，1：渠道机构号文件，2：电子汇票行号文件)</FileType>
                <DateTime>20190603142500(时间yyyyMMddHHmmss)</DateTime>
              </DetailRecord>
            </TransParam>
        </TransReq>
    </ATSYH>
    */
    public String fileType = "";
    public String dateTime = "";

    private XmlTextReader xmlReader;

    public ReqQryCodeFile(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;

        fileType = xmlReader.getSimpleText("FileType");
        dateTime = xmlReader.getSimpleText("DateTime");
    }

    public ReqQryCodeFile(ReqRespHeader p_header) {
        reqHeader = p_header;
    }
}